package com.pmoc.framework.core.client;

import com.pmoc.framework.core.model.Entity;

/**
 * 回调接口
 *
 * @author humdeef
 * @summary CallBack
 * @since 2019-05-13 18:27
 */
public interface CallBack {
    /**
     * 成功的回调
     *
     * @param entity
     * @param result
     * @return
     */
    Boolean onSuccess(Entity entity, boolean result, String msg);

    /**
     * 失败的回调
     *
     * @param entity
     * @param result
     * @param e
     * @return
     */
    Boolean onFail(Entity entity, boolean result, String msg, Exception e);
}
